﻿#region Header
// Copyright (c) 2015 OPEN TONE, Inc.
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
#endregion
using System;
using OpenXmlLib.Excel;
using OpenXmlLibTest.Base;

namespace OpenXmlLibTest.Excel.Impl
{
	public class AbstractExcelTestBase : AbstractOpenXmlLibTest
	{
		protected IExcel Open(String fileName)
		{
			return Open(fileName, false);
		}

		protected IExcel Open(String fileName, bool isEditable)
		{
			String path = GetTestResourceAbsolutePath(
				String.Format(@"OpenXmlLibTest\Excel\{0}", fileName));
			IExcel excel = ExcelFactory.Open(path, isEditable);
			return excel;
		}
	}
}